<form action="" method="post">
  {% csrf_token %}
  {{ form }}
  <input type="submit" value="Log in">
</form>
